package com.rulin.asp.business.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 管理员我的问题列表实体
 * @author yangsy
 *
 */
public class QuestionAdminResultRow {

	private String id;//问题id
	
	private String questionTitle;//问题标题
	
	private String questionDescribe;//问题详情
	
	@JsonFormat(timezone="GMT+8:00", pattern="yyyy-MM-dd")
	private Date quesTime;//问题提出时间
	
	private String quesType;//问题状态 1，未认领；2，认领中；3，已认领，4，已解答;5,已发布
	
	private String claimUserName;//认领教师
	
	private String quesDiffLevel;//问题难度
	
	private String questionSource;//问题来源：1，qq群；2，微信小程序；3，银成邮件；4，图书纠错
	
	private String major;//所属专业

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getQuestionTitle() {
		return questionTitle;
	}

	public void setQuestionTitle(String questionTitle) {
		this.questionTitle = questionTitle;
	}

	public String getQuestionDescribe() {
		return questionDescribe;
	}

	public void setQuestionDescribe(String questionDescribe) {
		this.questionDescribe = questionDescribe;
	}

	public Date getQuesTime() {
		return quesTime;
	}

	public void setQuesTime(Date quesTime) {
		this.quesTime = quesTime;
	}

	public String getQuesType() {
		return quesType;
	}

	public void setQuesType(String quesType) {
		this.quesType = quesType;
	}

	public String getClaimUserName() {
		return claimUserName;
	}

	public void setClaimUserName(String claimUserName) {
		this.claimUserName = claimUserName;
	}

	public String getQuesDiffLevel() {
		return quesDiffLevel;
	}

	public void setQuesDiffLevel(String quesDiffLevel) {
		this.quesDiffLevel = quesDiffLevel;
	}
	
	/**
	 * 未认领题目的提出时间到当前时间的时长
	 * @return
	 */
	public Long getQuesTimeLong(){
		Date currTime = new Date();
		Long hour = (currTime.getTime() - this.quesTime.getTime())/3600000;
		return hour;
	}

	public String getQuestionSource() {
		return questionSource;
	}

	public void setQuestionSource(String questionSource) {
		this.questionSource = questionSource;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}
}
